home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_176_98 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2007-09-27  |  955 b   |  32 lines

  1. onClipEvent(load){
  2.    isNegative = 0;
  3.    _width = random(50) + 77;
  4.    myColor = new Color(this);
  5.    if(this == _root.ceiling)
  6.    {
  7.       _root.orig1 = myColor.getTransform();
  8.    }
  9.    if(_root.negativeColor == 0)
  10.    {
  11.       myColor.setTransform(_root.orig1);
  12.       isNegative = 0;
  13.    }
  14.    if(_root.negativeColor == 1)
  15.    {
  16.       myColor.negative();
  17.       isNegative = 1;
  18.    }
  19.    this.dupeOnce = 1;
  20.    dropSpike = random(_root.spikeChances);
  21.    if(dropSpike == 0 && this != _root.ceiling)
  22.    {
  23.       _root.spike.duplicateMovieClip("spike" + _root.spikeCount,_root.i + 5000);
  24.       _root["spike" + _root.spikeCount]._y = this._y;
  25.       _root["spike" + _root.spikeCount]._x = this._x;
  26.       _root["spike" + _root.spikeCount]._rotation = 180;
  27.       _root["spike" + _root.spikeCount]._height = random(_root.spikeHeightAdd) + _root.spikeHeightMin;
  28.       _root.spikeCount = _root.spikeCount + 1;
  29.       _root.i = _root.i + 1;
  30.    }
  31. }
  32.